<!doctype html>
<html class="default no-js">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>jv</title>
	<meta name="description" content="Documentation for jv">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" href="assets/css/main.css">
</head>
<body>
<header>
	<div class="tsd-page-toolbar">
		<div class="container">
			<div class="table-wrap">
				<div class="table-cell" id="tsd-search" data-index="assets/js/search.json" data-base=".">
					<div class="field">
						<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
						<input id="tsd-search-field" type="text" />
					</div>
					<ul class="results">
						<li class="state loading">Preparing search index...</li>
						<li class="state failure">The search index is not available</li>
					</ul>
					<a href="index.html" class="title">jv</a>
				</div>
				<div class="table-cell" id="tsd-widgets">
					<div id="tsd-filter">
						<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
						<div class="tsd-filter-group">
							<div class="tsd-select" id="tsd-filter-visibility">
								<span class="tsd-select-label">All</span>
								<ul class="tsd-select-list">
									<li data-value="public">Public</li>
									<li data-value="protected">Public/Protected</li>
									<li data-value="private" class="selected">All</li>
								</ul>
							</div>
							<input type="checkbox" id="tsd-filter-inherited" checked />
							<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
							<input type="checkbox" id="tsd-filter-externals" checked />
							<label class="tsd-widget" for="tsd-filter-externals">Externals</label>
							<input type="checkbox" id="tsd-filter-only-exported" />
							<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
						</div>
					</div>
					<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
				</div>
			</div>
		</div>
	</div>
	<div class="tsd-page-title">
		<div class="container">
			<ul class="tsd-breadcrumb">
				<li>
					<a href="globals.html">Globals</a>
				</li>
			</ul>
			<h1>jv</h1>
		</div>
	</div>
</header>
<div class="container container-main">
	<div class="row">
		<div class="col-8 col-content">
			<div class="tsd-panel tsd-typography">
				<p>脚手架生成</p>
				<a href="#文档生成" id="文档生成" style="color: inherit; text-decoration: none;">
					<h1>文档生成</h1>
				</a>
				<p>安装依赖</p>
				<pre><code class="language-js">tnpm install --save-dev typedoc typedoc-plugin-markdown</code></pre>
				<p>配置生成scripts</p>
				<pre><code class="language-js"><span class="hljs-string">"doc"</span>: <span class="hljs-string">"typedoc --out docs"</span></code></pre>
				<p>执行</p>
				<pre><code class="language-js">npm run doc</code></pre>
				<a href="#部署" id="部署" style="color: inherit; text-decoration: none;">
					<h1>部署</h1>
				</a>
				<p>目录部署，只需修改一次devops.config.js，后面就不用再管了，本地调试用的是根目录，发布后就采用了目录部署。</p>
				<pre><code class="language-js"><span class="hljs-comment">// devops.config.js</span>
<span class="hljs-comment">/**
 * 发布部署相关配置
 */</span>
<span class="hljs-built_in">module</span>.exports = {
    <span class="hljs-comment">/**
     * 部署目录
     * 例如： demo
     * 只有在正式环境才需要
     */</span>
    <span class="hljs-attr">prefix</span>: process.env.NODE_ENV== <span class="hljs-string">'development'</span>? <span class="hljs-string">''</span> : <span class="hljs-string">'demo'</span>
}</code></pre>
				<p>旧项目升级，对比以下文件过去即可:</p>
				<pre><code class="language-ts">\boilerplate\app\web\framework\app.ts
\boilerplate\app\web\router\index.ts
\boilerplate\config\config.default.ts
\boilerplate\webpack.config.js
\boilerplate\devops.config.js</code></pre>
			</div>
		</div>
		<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
			<nav class="tsd-navigation primary">
				<ul>
					<li class="globals  ">
						<a href="globals.html"><em>Globals</em></a>
					</li>
					<li class=" tsd-kind-module">
						<a href="modules/_app_controller_index_.html">&quot;app/controller/index&quot;</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="modules/_app_service_base_.html">&quot;app/service/base&quot;</a>
					</li>
					<li class=" tsd-kind-module">
						<a href="modules/_config_config_default_.html">&quot;config/config.default&quot;</a>
					</li>
				</ul>
			</nav>
			<nav class="tsd-navigation secondary menu-sticky">
				<ul class="before-current">
				</ul>
			</nav>
		</div>
	</div>
</div>
<footer class="with-border-bottom">
	<div class="container">
		<h2>Legend</h2>
		<div class="tsd-legend-group">
			<ul class="tsd-legend">
				<li class="tsd-kind-class"><span class="tsd-kind-icon">Class</span></li>
				<li class="tsd-kind-class tsd-has-type-parameter"><span class="tsd-kind-icon">Class with type parameter</span></li>
			</ul>
			<ul class="tsd-legend">
				<li class="tsd-kind-variable"><span class="tsd-kind-icon">Variable</span></li>
			</ul>
		</div>
	</div>
</footer>
<div class="container tsd-generator">
	<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
</div>
<div class="overlay"></div>
<script src="assets/js/main.js"></script>
<script>if (location.protocol == 'file:') document.write('<script src="assets/js/search.js"><' + '/script>');</script>
</body>
</html>